//
//  UICoreEnvironment.swift
//  App_Common
//
//  Created by 蒋晨成 on 2021/12/24.
//

import Center_AppInfo
import Foundation
import UICore
import UIKit

public struct UICoreEnvironment: UICore.Environmental {
    public let scheme: String = AppInfoCenter.appScheme

    public init() {}

    public func application(didRegisterForRemoteNotificationsWithDeviceToken _: Data) {
//        Pusher.registerDeviceToken(deviceToken)
    }

    public func application(didFailToRegisterForRemoteNotificationsWithError _: Error) {}

    public func application(didReceiveRemoteNotification _: [AnyHashable: Any], fetchCompletionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
//        Pusher.didReceiveRemoteNotification(userInfo: userInfo)
        fetchCompletionHandler(.newData)
    }
}
